import request from '../../utils/request'

// 查询店铺审核列表
export function listApply(query) {
    return request({
        url: '/shop/apply/list',
        method: 'get',
        params: query
    })
}

// 查询店铺审核详细
export function getApply(applyId) {
    return request({
        url: '/shop/apply/' + applyId,
        method: 'get'
    })
}

// 新增店铺审核
export function addApply(data) {
    return request({
        url: '/shop/apply',
        method: 'post',
        data: data
    })
}

// 修改店铺审核
export function updateApply(data) {
    return request({
        url: '/shop/apply',
        method: 'put',
        data: data
    })
}

// 删除店铺审核
export function delApply(applyId) {
    return request({
        url: '/shop/apply/' + applyId,
        method: 'delete'
    })
}
